import service from "~/utils/request";

export const getPolicyPathByAuthorityId = (query) => {
  return service({
    url: "/authority/getPolicyPathByAuthorityId",
    method: "get",
    params: query,
  });
};

export const UpdateCasbin = (data) => {
  return service({
    url: "/authority/updateCasbinByAuthority",
    method: "post",
    data,
  });
};
